﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using WCFMINERP.DAL;
using WCFMINERP.Contracts.DataContracts;

namespace WCFMINERP.BLL.TransferBLL
{
    public class SaveFile
    {
         /// <summary>
        /// 获取下载暂存目录
        /// </summary>
        /// <returns></returns>
        public string GetSavePath()
        {
            string path = string.Empty;
            using (newSampleYPDBEntities db = new newSampleYPDBEntities())
            {
                return db.FileDirPath.FirstOrDefault(ph => ph.Des == "下载目录").FileDir;

            }
        }        
    }
}
